package com.gxa.client_shoppings.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author smile_ZhongXuan
 * @Date 2020/11/11 14:33
 * @Version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tb_shoppings")
public class Shoppings implements Serializable {
    @Id
    @Column(name = "shop_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    @Column(name = "shop_name")
    private String name;
    @Column(name = "shop_title")
    private String title;
    @Column(name = "shop_description")
    private String description;
    @Column(name = "shop_keys")
    private String keys;
    @Column(name = "shop_province")
    private String province;
    @Column(name = "shop_city")
    private String city;
    @Column(name = "shop_address")
    private String address;
    @Column(name = "shop_custype")
    private Boolean custype;
    @Column(name = "shop_cuslink")
    private String cuslink;
    @Column(name = "shop_cusphone")
    private String cusphone;
    @Column(name = "shop_closeshop")
    private Boolean closeshop;
    @Column(name = "shop_pclogo")
    private String pclogo;
    @Column(name = "shop_wchatlogo")
    private String wchatlogo;
    @Column(name = "shop_publiclogo")
    private String publiclogo;
    @Column(name = "shop_groupdate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date groupdate;
    @Column(name = "shop_refundtime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" ,timezone = "GMT+8")
    private Date refundtime;
    @Column(name = "shop_followbuy")
    private Integer followbuy;
}
